Add a `repo()` accessor to `TransactionGuard`
authorColin Walters <walters@verbum.org>
Tue, 26 Apr 2022 23:30:01 +0000 (19:30 -0400)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:57 +0000 (12:53 -0400)
commita5ef4cd5cc4c68deaca3a8414a8ce727b755731e
tree12706046e4bb4e3c44f976f6d27d517e6b277f41
parent1541c5eb2efd1db08bc8298754af02358788abd2
Add a `repo()` accessor to `TransactionGuard`

I want to write APIs that *require* the caller to have set up
an ostree transaction.  It's natural to require passing a guard
to do so.  But then we want an accessor for the repo.
rust-bindings/src/repo.rs
rust-bindings/tests/util/mod.rs